<?php

namespace app\admin\controller;

use app\common\controller\Backend;
use think\Config;

/**
 * 控制台
 *
 * @icon fa fa-dashboard
 */
class Dashboard extends Backend
{
    /**
     * 查看
     */
    public function index()
    {
        $hooks = config('addons.hooks');
        $uploadmode = isset($hooks['upload_config_init']) && $hooks['upload_config_init'] ? implode(',', $hooks['upload_config_init']) : 'local';
        $this->view->assign([
            'uploadmode'       => $uploadmode
        ]);

        return $this->view->fetch();
    }

}
